package com.aaa.ssm.controller;

import com.aaa.ssm.entity.RoleQuery;
import com.aaa.ssm.service.RoleService;
import com.aaa.ssm.util.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author AUSU
 * @version 1.0
 * 创建时间：2025/3/25 10:59
 */

@RestController
@RequestMapping("role")
public class RoleController {

    @Autowired
    private RoleService roleService;


    @PostMapping
    public AjaxResult queryStudent (RoleQuery query){

        return roleService.queryRole(query);
    }


}
